namespace CoreManager.Services.Auth
{
    /// <summary>
    /// Redis中存储的RefreshToken数据结构
    /// </summary>
    public class RefreshTokenData
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>
        /// 客户端IP地址
        /// </summary>
        public string ClientIp { get; set; } = string.Empty;

        /// <summary>
        /// 用户代理信息
        /// </summary>
        public string UserAgent { get; set; } = string.Empty;
    }
}